using Unity.Entities;
using Unity.Mathematics;
using UnityEngine;

public class BulletMoverAuthoring : MonoBehaviour
{
    public float moveSpeed;
    public class Baker : Baker<BulletMoverAuthoring>
    {
        public override void Bake(BulletMoverAuthoring authoring)
        {
            Entity entity = GetEntity(TransformUsageFlags.Dynamic);
            AddComponent(entity, new BulletMover
            {
                moveSpeed = authoring.moveSpeed,
            });
        }
    }
}

public struct BulletMover : IComponentData
{
    public float3 moveDir;
    public float moveSpeed;
}
